home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
GCC
/
CLIB
/
!clib
/
!Readme
< prev
next >
Wrap
Text File
|
1997-05-22
|
2KB
|
57 lines
The Shared C Library
====================
Introduction
------------
This directory contains the necessary header files and object file to enable
programs to use the SharedCLibrary module.
This library is © 1997 Nick Burrett
You are free to use this library but THERE IS NO WARRANTY OF ANY SORT
Files
-----
All header files are accessible through the path C: or Clib:
All programs must additionally link with the Acorn Object Format (AOF)
file C:o.stubs (or clib:o.stubs).
Installation
------------
Copy the directory !clib somewhere on your hard disc. Double-clicking on it
will setup the necessary paths, ready for use.
With a slight modification, this library can be used with Easy C and Acorn C.
To do this, you need to obtain the stdarg.h and varargs.h header files
appropriate to your compiler and copy them into !clib.h.stdarg and
!clib.h.varargs. You must also copy the definition of va_list and put it
towards the start of !clib.h.stdio, renaming va_list to __va_list.
Using the SharedCLibrary library
--------------------------------
In general usage, all that is needed is an extra command line option to GCC:
-mstubs
The library to link against is c:o.stubs
As an example in general use: to compile the example file c.hellow
gcc -c c.hellow -O2 -mstubs
drlink -o hellow o.hellow gcc:o.libgcc c:o.stubs
should be sufficient.
If you use LD, then add '-Lc: -lstubs' to the command line.
Contacting me
-------------
I can be contacted by e-mail at: nick.burrett@btinternet.com